from django.urls import path
from rest_framework_jwt.views import obtain_jwt_token
from . import views

urlpatterns = [
    #  url(r"^smscode/(?P<mobile>1\d{10})", views.SMSCodeView.as_view()),
    path("create/", views.UserCreateAPI.as_view()),
    # path("login/<int:pk>/", views.UserLoginAPI.as_view()),
    path('login/', obtain_jwt_token),
    path("exist/<slug:username>/", views.UserExistAPI.as_view()),
    path("mobile/<slug:mobile>/", views.MobileExistAPI.as_view()),
    path("detail/", views.UserDetailAPI.as_view()),
    path("emailactivate/<token>/", views.UserEmailActivateAPI.as_view()),
    # re_path(r"exist/(?P<username>.*)/", views.UserExistAPI.as_view()),
]
